package C10_14_ReplaceErrorCodeWithException.before_refactor;

public class Account {
    private int _balance;
    int withdraw(int amount) {
        if (amount > _balance) {
            return -1;
        } else {
            _balance -= amount;
            return 0;
        }
    }
}
